using System.Collections.Generic;
using MvcMall.Core.Domains;
using MvcMall.Framework.MvcPager;

namespace MvcMall.Core.Contacts.Tasks
{
    public interface ISysMessageTask
    {
        SysMessage Get(int id);

        List<SysMessage> GetUnReadList(string userName);

        void Delete(int id);

        void SetIsRead(int id);

        SysMessage Send(string receiveUserName, string content);

        PagedList<SysMessage> GetUnReadPagedList(string userName,int pageIndex,int pageSize);
    }
}